/**
 * 发布类接口
 */
let release = (vm) => {
	return {
		// 货物发布
		saveGoods: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.post('release/release/saveGoods', params)
		},
		// 获取货物详情
		getGoodsDetail: (params = {}) => {
			return vm.$u.get('release/release/getGoodsDetail', params)
		},
		// 运输发布
		saveTransport: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.post('release/release/saveTransport', params)
		},
		// 获取运输详情
		getTransportDetail: (params = {}) => {
			return vm.$u.get('release/release/getTransportDetail', params)
		},
		// 跨境货代发布
		saveCrossborder: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.post('release/release/saveCrossborder', params)
		},
		// 获取跨境货代详情
		getCrossborderDetail: (params = {}) => {
			return vm.$u.get('release/release/getCrossborderDetail', params)
		},
		// 专业代办发布
		saveProfessional: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.post('release/release/saveProfessional', params)
		},
		// 获取专业代办详情
		getProfessionalDetail: (params = {}) => {
			return vm.$u.get('release/release/getProfessionalDetail', params)
		},
		//  生活广告发布
		saveLifead: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.post('release/release/saveLifead', params)
		},
		// 获取生活广告详情
		getLifeadDetail: (params = {}) => {
			return vm.$u.get('release/release/getLifeadDetail', params)
		},
		//  中俄新闻发布
		saveNews: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.post('release/release/saveNews', params)
		},
		// 获取中俄新闻详情
		getNewsDetail: (params = {}) => {
			return vm.$u.get('release/release/getNewsDetail', params)
		},
		//  曝光台发布
		saveExposure: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.post('release/release/saveExposure', params)
		},
		// 获取曝光台详情
		getExposureDetail: (params = {}) => {
			return vm.$u.get('release/release/getExposureDetail', params)
		},
		// 认证
		newProfile: (params = {}) => {
			params.needLogin = true // 需要登录
			return vm.$u.post('UserAudit/newProfile', params)
		},
		// 获取运输库
		transportVehicle(params) {
			params.needLogin = true // 需要登录
			return vm.$u.post('transport/index', params)
		}
	}
}

// 抛出当前模块
export default release